package PTA.pta_ch0304_05;

import java.io.PipedWriter;
import java.util.ArrayList;
import java.util.Scanner;
import java.util.Objects;
import java.util.Scanner;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Objects;

 class PersonOverride {
    private String name;
    private int age;
    private boolean gender;

    //有参
    public PersonOverride(String name, int age, boolean gender) {
        this.name = name;
        this.age = age;
        this.gender = gender;
    }

    //无参
    public PersonOverride() {
        this("default", 1, true);
    }

    @Override
    public String toString() {
        return name + '-' + age + '-' + gender;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        PersonOverride that = (PersonOverride) o;
        return age == that.age &&
                gender == that.gender &&
                name.equals(that.name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, age, gender);
    }


}

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
int n1 = sc.nextInt();
        ArrayList<PersonOverride> ap = new ArrayList<PersonOverride>();
for(int i=0;i<n1;i++){
    ap.add(new PersonOverride());
}

int n2 = sc.nextInt();
sc.nextLine();
for(int i=0;i<n2;i++){

}
    }


}
